package com.lzm.mybatis_plus.pojo;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

import static com.baomidou.mybatisplus.annotation.IdType.*;

/**
 * @Description: TODO
 * @author: lzm
 * @date: 2021年04月28日 13:05
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    @TableId(type = ID_WORKER)
    private Long id;
    private String name;
    private Integer age;
    private String email;
//    @TableField(fill = FieldFill.INSERT)
    private Date create_time;
//    @TableField(fill = FieldFill.UPDATE)
    private Date update_time;

    @Version
    private Integer version;

    @TableLogic
    private Integer deleted;
}